package com.story.api.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 栏目表
 * </p>
 *
 * @author yangbo
 * @since 2017-12-14
 */
public class Banner extends Model<Banner> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 栏目名
     */
	private String name;
    /**
     * 栏目图标
     */
	private String iconPath;

	/**
	 * 栏目类型
	 */
	private Integer type;

	/**
	 * 栏目排序值
	 */
	private Integer rank;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIconPath() {
		return iconPath;
	}

	public void setIconPath(String iconPath) {
		this.iconPath = iconPath;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Banner{" +
			"id=" + id +
			", name=" + name +
			", iconPath=" + iconPath +
			", type=" + type +
			", rank=" + rank +
			"}";
	}
}
